package jogoprojetopi;

import s3t.gameControl.system.GameSystem;
import s3t.gameElements.Element;

public class Inimigo {

    private Element vitima;

    public Inimigo(int posicaoX, int posicaoY) {

        vitima = new Element("vitima", posicaoX, posicaoY, LoadIMages.scenario);
        
        //Coloca o inimigo da engine
        LoadIMages.iCollectionIN.setDefaultKey("andarEsquerda");
        vitima.setImageCollection(LoadIMages.iCollectionIN);
        vitima.setDoNotStop(true);
        GameSystem.getInstance().getElementCollection().addElement(vitima);
        GameSystem.getInstance().getAIEngine().setIAElement(vitima, new ControleDoInimigo());
        vitima.setAnimationListener(new ListenerDeAnimacaoDoInimigo());
    }
}
